<template>
  <div id="view">
    <div class="w1200">
      <p class="guide">
        <router-link to="/machinemarket">算力市场&nbsp;&nbsp;>&nbsp;</router-link>
        <span>下单结果</span>
      </p>
      <div id="pageContent">
        <div class="w1200">
          <p class="successImg">
            <img src="../common/imgs/radiusSuccess.png" alt="">
          </p>
          <p class="successInfo">下单成功</p>
          <div class="orderInfo">
            <p>
              <span class="left">订单号：</span>
              <span class="right">{{orderId}}</span>
            </p>
            <p>
              <span class="left">支付金额：</span>
              <span class="right">{{payMoney}}{{payUnit}}</span>
            </p>
     <!--       <p>
              <span class="left">支付账号：545212121</span>
              <span class="right"></span>
            </p> -->
          </div>
          <router-link to="/machinemarket" class="toMarket">返回算力市场</router-link>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'paymentSuccessful',
    data() {
      return {
        orderId : '',
        payMoney :'',
        payUnit : '',
      }
    },
    mounted() {
      let query = this.$route.query;
      this.orderId = query.orderId;
      this.payMoney = query.payMoney;
      this.payUnit = query.payUnit;
    }
  }
</script>

<style lang="less" scoped>
  @import "../common/style/common";
  @import "../common/style/public.css";
  #view{
    padding-top: 72px;padding-bottom: 90px;
  }
  .guide{
    padding: 21px 0;font-size: 16px;
    >a{
      .colorYellow;
    }
    >span{
      color: #262626;
    }
  }
  #pageContent{
    padding: 29px 26px;background: #fff;.borderRadius;padding-bottom: 66px;padding-top: 120px;
    .successImg{
      text-align: center;
    }
    .successInfo{
      text-align: center;.colorYellow;font-size: 20px;padding-top: 13px;
    }
    .orderInfo{
      width: 466px;background: #F8F8F8;padding-left: 90px;margin: 0 auto;margin-top: 23px;padding-bottom: 23px;color: #595959;font-size: 16px;
      >p{
        padding-top: 21px;
      }
    }
    .toMarket{
      .submit;display: block;width: 160px;height: 38px;line-height: 38px;margin: 0 auto;margin-top: 29px;font-size: 14px;
    }
  }
</style>
